/**
 * 
 */
package com.cp16.tss.bo;

import com.cp16.tss.dao.DeviceDAO;
import com.cp16.tss.dto.Device;

/**
 * @author ADMIN
 *
 */
public class DeviceBO {
	
	private DeviceDAO deviceDAO;

	public Device getDeviceByName(String deviceName) throws Exception {
		return deviceDAO.getDeviceByName(deviceName);
	}

	public boolean addDevice(Device device) throws Exception {
		return deviceDAO.addDevice(device);
	}

	public boolean updateDevice(Device device) throws Exception {
		return deviceDAO.updateDevice(device);
	}

	public boolean deleteDevice(Device device) throws Exception {
		return deviceDAO.deleteDevice(device);
	}

}
